package com.jdbc.login.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.jdbc.login.dao.LoginDao;
import com.jdbc.login.entity.StudentInfo;

@Service
public class LoginServiceImpl implements LoginService {
	
	@Resource
	public LoginDao ld;
	@Override
	public boolean login(String username, String password) {
		StudentInfo si = ld.login(username, password);
		if(si==null){
			return false;
		}else{
			return true;
		}
	}

}
